package com.cosina.game.robodefence.model;

import com.cosina.game.robodefence.core.BattleEngine;

public class Commander {
	
	private  int bouns = 0;
	private  int score = 731;
	private  int level =  1;
	private  int wave =  0;
	private  int money = 250;
	private  int hp = 20;
	
	
	public boolean isSufficiency(int moneyNeed){
		return money >= moneyNeed;
	}
	
	public  String getLevelInfo(){
		return "Level:" + level + "-" + wave;
	}
	
	public  String getBounsInfo(){
		return "Bounus:" + bouns;
	}

	public  String getScoreInfo() {
		return "Score:" + score;
	}

	public  String getMoneyInfo() {
		return "$" + money;
	}

	public  String getHpInfo() {
		return hp + "";
	}
	
	public  void use(int money){
		this.money -= money;
	}
	
	public  void get(int money){
		this.money += money;
	}

	public void hit() {	
		if(hp>0){
		}
		hp --;
		
		if (hp == 0){
			BattleEngine.status = BattleEngine.Status.over;
		}
	}

	public void newWave() {
		this.wave ++;
	}
}
